<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
		<div class="mc">
			<div class="mc-l">
				<!--左侧导航---{-->
				<div id="navPanelContainer">
					<div class="system-logo cd"></div>
					<!--管理员信息---{-->
					<#include "../adminInfo.html">
						<!--管理员信息---}-->
						<div class="nav-wrap">
							<#include "leftForRechargeAndCash.html">
						</div>
				</div>
				<!--左侧导航---}-->
			</div>
			<div class="mc-m">
				<div class="navToggle"></div>
			</div>
			<div class="mc-r">
				<!--顶部导航---{-->
				<#include "../topNav.html">
					<!--顶部导航---}-->

					<!--面包屑导航---{-->
					<#assign moduleName="交易订单管理">
						<#include "banner.html">
							<!--面包屑导航---}-->

							<!--工具栏--{-->
							<div id="toolbar" class="clearfix">

								<div class="toolbor-module search">
									<input type="button" value="搜索"  class="input-button" onclick="sousuo();">
								</div>


								<div class="toolbor-module search">
									<div class="formTit">交易类型：</div>
									<div class="select-box" id="tradeType">
										<div class="tag-select">全部</div>
										<ul class="tag-options">

											<li data-value="104">充值</li>

											<li data-value="112">借款提现</li>
										</ul>
									</div>
								</div>


								<div class="toolbor-module search">
									<div class="formTit">订单号：</div>
									<input type="text" name="orderNo" id="orderNo" value="请输入订单号" class="search-value">
								</div>



								<div class="toolbor-module search" style="clean:right;margin-right:125px">
									<div class="formTit">添加时间：</div>
									<input class="_search-value" name="addStartDate" id="addStartDate" value="" onclick="change_picktime()"/>
									<div class="formTit"> 到 </div>
									<input class="_search-value" name="addEndDate" id="addEndDate" value=""  onclick="change_picktime()"/>
								</div>
							</div>
							<!--工具栏--}-->

							<div id="main" class="clearfix">
								<form action="" method="post">
									<table class="data-list">
										<tr class="header">
											<td>序号</td>
											<td>用户名</td>
											<td>真实姓名</td>
											<td>订单号</td>
											<td>交易渠道</td>
											<td>交易类型</td>
											<td>付款类型</td>
											<td>添加时间</td>
											<td>订单失效时间</td>
											<td>支付响应时间</td>
											<td>关联业务主键</td>
											<td>交易金额</td>
											<td>商品名称</td>
											<td>订单信息</td>
											<td>订单状态</td>
											<td>IP</td>
										</tr>
										<#if list?? && (list?size > 0)>
											<#list list as obj>
												<tr class="s">
													<td>${obj.orderId?c}</td>
													<td>${obj.user.userName!''}</td>
													<td>${obj.user.realName!''}</td>
													<td>${obj.orderNo!''}</td>
													<td>
														<#if obj.tradeChannel==1>连连支付<#else>-</#if>
													</td>
													<td>
														<#if obj.tradeType == 101>
															申购
															<#elseif obj.tradeType == 102>
																APP申购
																<#elseif obj.tradeType == 103>
																	WAP申购
																	<#elseif obj.tradeType == 104>
																		充值
																		<#elseif obj.tradeType == 105>
																			一分钱银行卡校验
																			<#elseif obj.tradeType == 111>
																				自动还款
																				<#elseif obj.tradeType == 112>
																					借款提现
																					<#elseif obj.tradeType == 113>
																						奖励提现
																						<#elseif obj.tradeType == 114>
																							奖励提现
																							<#elseif obj.tradeType == 201>
																								借款入账
																								<#elseif obj.tradeType == 202>
																									借款支出
																									<#elseif obj.tradeType == 203>
																										借款手续费入账
																										<#elseif obj.tradeType == 204>
																											借款手续费支出
																											<#elseif obj.tradeType == 205>
																												技术服务费入账
																												<#elseif obj.tradeType == 206>
																													技术服务费支出
																													<#elseif obj.tradeType == 207>
																														红包使用支出
																														<#elseif obj.tradeType == 999>
																															其他
																															<#else>
																																其他
														</#if>
													</td>
													<td>
														<#if obj.payType == 1>
															收入
															<#elseif obj.payType ==2>
																支出
																<#else>
																	默认
														</#if>
													</td>
													<td>${obj.addTime!''}</td>
													<td>${obj.expiryTime!''}</td>
													<td>${obj.payResultTime!''}</td>
													<td>${obj.busId?c}</td>
													<td>${obj.tradeMoney?c}</td>
													<td>${obj.goodsName!''}</td>
													<td>${obj.orderInfo!''}</td>
													<td>
														<#if obj.status==101>
															本地发起申请
															<#elseif obj.status==103>
																本地订单过期
																<#elseif obj.status==105>
																	查无退出的银行卡
																	<#elseif obj.status==206>
																		请求支付失败
																		<#elseif obj.status==200>
																			支付成功
																			<#elseif obj.status==201>
																				支付处理中
																				<#elseif obj.status==299>
																					支付失败
																					<#elseif obj.status==204>
																						支付退款
																						<#elseif obj.status==203>
																							支付订单超时
																							<#else>
																								-
														</#if>
													</td>
													<td>${obj.addIp!''}</td>
												</tr>
											</#list>
										</#if>
									</table>
								</form>

								<!--底部工具栏--{-->
								<div id="bottomToolbar" class="clearfix">
									<div class="other-tool">
										<dl class="refresh-data">
											<dt class="refresh-data-icon"></dt>
											<dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
										</dl>
									</div>

									<!--翻页系统--{-->
									<div class="container s_formPage">
										<#import "../../common/page.html" as pager>
											<@pager.pagination page=page url="${pageUrl}" map=param style="style1" />
									</div>
									<!--翻页系统--}-->
								</div>
								<!--底部工具栏--}-->

								<script type="text/javascript">
                                    var url='/admin/account/franchiseeTradeOrder.html?search=true';
                                    function sousuo(){
                                        var sou = "";

                                        var orderNo = $("#orderNo").val();
                                        if (orderNo!=""&&orderNo!="请输入订单号"){
                                            sou += "&orderNo="+orderNo;
                                        }


                                        var addStartDate = $("#addStartDate").val();
                                        var addEndDate = $("#addEndDate").val();
                                        if (addStartDate!=null){
                                            sou += "&addStartDate="+addStartDate;
                                        }
                                        if (addEndDate!=null){
                                            sou += "&addEndDate="+addEndDate;
                                        }
                                        var tradeType = $("#tradeType").find(".open-selected").attr("data-value");
                                        if(tradeType!=null&&tradeType!=""&&tradeType!="undefine"){
                                            sou += "&tradeType="+tradeType;
                                        }

                                        if (sou!=""){
                                            location.href=url+sou;
                                        }
                                    }

								</script>
							</div>
			</div>
		</div>
		<div class="mc-b"><#include "../foot.html"></div>
		<#include "../jsPage.html">
    </body>
</html>

